package com.ruike.alisurface.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Author: voodoo
 * CreateDate: 2023/09/26 026 上午 09:45
 * Description: 按照货道创建反扫订单
 */
public class ReScanOrderResultBean implements Serializable {

    /**
     * data : {"order_id":"2023092713425110076631","total_point":1,"detail_list":[{"slotIndex":11,"quantity":1,"point":1,"slotType":21001}]}
     * code : 0
     * msg : 下单成功
     * sendData : 2023-09-27 13:42:51
     */
    private DataBean data;
    private int code;
    private String msg;
    private String sendData;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getSendData() {
        return sendData;
    }

    public void setSendData(String sendData) {
        this.sendData = sendData;
    }

    public static class DataBean implements Serializable  {
        /**
         * order_id : 2023092713425110076631
         * total_point : 1
         * detail_list : [{"slotIndex":11,"quantity":1,"point":1,"slotType":21001}]
         */
        private String order_id;
        private int total_point;
        private List<DetailListBean> detail_list;

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public int getTotal_point() {
            return total_point;
        }

        public void setTotal_point(int total_point) {
            this.total_point = total_point;
        }

        public List<DetailListBean> getDetail_list() {
            return detail_list;
        }

        public void setDetail_list(List<DetailListBean> detail_list) {
            this.detail_list = detail_list;
        }

        public static class DetailListBean implements Serializable {
            /**
             * slotIndex : 11
             * quantity : 1
             * point : 1
             * slotType : 21001
             */
            private int slotIndex;
            private int quantity;
            private int point;
            private String product_name;
            private String product_pic;
            private int slotType;

            public int getSlotIndex() {
                return slotIndex;
            }

            public void setSlotIndex(int slotIndex) {
                this.slotIndex = slotIndex;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public int getPoint() {
                return point;
            }

            public void setPoint(int point) {
                this.point = point;
            }

            public String getProduct_name() {
                return product_name;
            }

            public void setProduct_name(String product_name) {
                this.product_name = product_name;
            }

            public String getProduct_pic() {
                return product_pic;
            }

            public void setProduct_pic(String product_pic) {
                this.product_pic = product_pic;
            }

            public int getSlotType() {
                return slotType;
            }

            public void setSlotType(int slotType) {
                this.slotType = slotType;
            }

            @Override
            public String toString() {
                return "DetailListBean{" +
                        "slotIndex=" + slotIndex +
                        ", quantity=" + quantity +
                        ", point=" + point +
                        ", product_name='" + product_name + '\'' +
                        ", product_pic='" + product_pic + '\'' +
                        ", slotType=" + slotType +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "order_id='" + order_id + '\'' +
                    ", total_point=" + total_point +
                    ", detail_list=" + detail_list +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "ReScanOrderResultBean{" +
                "data=" + data +
                ", code=" + code +
                ", msg='" + msg + '\'' +
                ", sendData='" + sendData + '\'' +
                '}';
    }
}
